from netmiko import ConnectHandler
from ntc_templates.parse import parse_output

if __name__ == '__main__':
    dev_info = {
        'device_type': 'huawei',
        'ip': '192.168.56.11',
        'port': 22,
        'username': 'user01',
        'password': 'user01'
    }

    net_connect = ConnectHandler(**dev_info)
    output = net_connect.send_command('display version',use_textfsm=True,textfsm_template="./templates/huawei/huawei_version.textfsm")
    print(output)